﻿namespace CSharpPro1._1030;

public class Father
{
    public string name;
    public int age;
    public int id;
    public double score;

    public Father()
    {
        
    }

    public string Name
    {
        get => name;
        set => name = value ?? throw new ArgumentNullException(nameof(value));
    }

    public int Age
    {
        get => age;
        set => age = value;
    }

    public int Id
    {
        get => id;
        set => id = value;
    }

    public double Score
    {
        get => score;
        set => score = value;
    }
    public virtual void Print()
    {
        Console.WriteLine("Father----------Print");
    }

    public Father(int id)
    {
        this.id = id;
    }
}